﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace KBEngine.Setting.Internal
{
    [Serializable]
    public class Machine
    {
        public int externalTcpPorts_min = 20099;
        public int externalTcpPorts_max = 0;
        public int externalUdpPorts_min = 0;
        public int externalUdpPorts_max = 0;

        /// <summary>
        /// 服务组使用多台硬件组成网络，在某些网络环境由于路由器的设置不允许UDP广播造成跨物理机组网不成功时
        /// 可在此填入所有相关物理机的地址，引擎将会向具体的地址发送探测包来完成组网。
        /// </summary>
        [XmlArrayItem("item")]
        public List<string> addresses = new List<string>();
    }
}
